<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class System_mdl extends CI_Model {

	const TABLE = 'system';

	//查询单个记录
	public function get_one(){
		$this->db->where('id',1);
		return $this->db->get(self::TABLE)->row();
	}

	//修改系统信息
	public function update($data){
		return $this->db->update(self::TABLE,$data);
	}

}

/* End of file system_mdl.php */
/* Location: ./application/models/system_mdl.php */